package com.lijian.service;

import com.lijian.base.Result;
import com.lijian.dto.RoleDto;
import com.lijian.model.SysRole;

public interface RoleService {
    Result<SysRole> findAllRoles();

    Result<SysRole> findAllRolesByPage(Integer offset, Integer limit);

    Result<SysRole> save(RoleDto roleDto);

    SysRole findRoleById(Integer id);

    Result<SysRole> update(RoleDto roleDto);

    Result delete(Integer id);

    Result<SysRole> findRoleBySearch(String roleName, Integer offset, Integer limit);
}
